<%@ page contentType="text/html; charset=UTF-8"  %>
<%@ taglib uri="/struts-tags" prefix="s" %>

<div id="usli_order" style="padding:5px;height:auto">
	<div>
		<a href="javascript:;" id="orderadd" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="order_add_dd()">新建</a>
		<a href="javascript:;" id="delorders" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="order_update_dd()">修改</a>
		<a href="javascript:;" id="delorders" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="order_del_s()">删除</a>
		<a href="javascript:;" id="equ_execldl" class="easyui-linkbutton" iconCls="icon-download" plain="true" onclick="create_order_xls()">导出</a>
		<a href="javascript:;" id="equ_execldl" class="easyui-linkbutton" iconCls="icon-role" plain="true" onclick="order_mouth_del_dd()">管理</a>
	</div>
	<div style="padding-top: 5px; padding-left: 4px;">
		状态:<select id="usli_order_status" onchange="order_load()">
				<option value="0">未出货</option>
				<option value="1">已出货</option>
			</select>
		部门:<select id="usli_order_dep" onchange="order_load()">
				<option value="0">全部</option>
			</select>
		<a href="javascript:;" class="easyui-linkbutton" onclick="order_load()" data-options="iconCls:'icon-search'">查找</a>	
	</div>
	<div style="padding-top: 5px; padding-left: 4px;">	
		公司编号: <input id="usli_order_companyNum" style="width:120px">
		流水号: <input id="usli_order_serial_number" style="width:120px">
		重要编号: <input id="usli_order_selImportant" style="width:120px">
		起始年月:<input id="usli_order_begin_time" type="text"  class="easyui-datebox">
		结束年月:<input id="usli_order_end_time" type="text"  class="easyui-datebox">
	</div>
	<div style="padding-top: 5px; padding-left:4px;">
		客户编号: <input id="usli_order_customNum" style="width:120px">
		客户型号: <input id="usli_order_customType" style="width:120px">
		唛头: <input id="usli_order_marks" style="width:120px">
		机芯: <input id="usli_order_movement" style="width:120px">
	</div>
</div>

<table id="order_result"></table>
	
	<div id="order_add_dd" data-options="closed:true" style="padding:5px; width: 430px; height: 510px; ">
		<div class="usli_ftitle">添加信息</div>
		<form id='order_add_form' method='post'>
			<div class="usli_fitem">
				<label>公司编号：</label>
				<input name="companyNum" class="easyui-validatebox" missingMessage="必填" validType="length[3,3]" invalidMessage="必须为3位数字！" required="true">
			</div>
			<div class="ul_fitem">
				<label>种类：</label>
				<input type="radio" name="selABCDE" value="0" checked>0
				<input type="radio" name="selABCDE" value="A">A
				<input type="radio" name="selABCDE" value="B">B
				<input type="radio" name="selABCDE" value="C">C
				<input type="radio" name="selABCDE" value="D">D
				<input type="radio" name="selABCDE" value="E">E
				<!-- <label>（不选默认为0）</label> -->
			</div>
			<div class="usli_fitem">
				<label>流水号：</label>
				<input type="text" name="serial_number" class="easyui-validatebox" missingMessage="必填" validType="length[4,4]" invalidMessage="必须为4位数字！" required="true">
			</div>
			<div class="usli_fitem">
				<label>重要订单编号：</label>
				<input name="ifImportant" type="text" class="easyui-validatebox" missingMessage="选填" validType="length[4,4]" invalidMessage="必须为4位数字！" required="true">
				<!-- <label>（选填，必须为4位）</label> -->
			</div>
			<div class="usli_fitem">
				<label>数量：</label>
				<input type="text" name="num">
			</div>
			<div class="usli_fitem">
				<label>客户编号：</label>
				<input type="text" name="customNum">
			</div>
			<div class="usli_fitem">
				<label>客户型号：</label>
				<input type="text" name="customType">
			</div>
			<div class="usli_fitem">
				<label>唛头：</label>
				<input type="text" name="marks">
			</div>
			<div class="usli_fitem">
				<label>机芯：</label>
				<input type="text" name="movement">
			</div>
			<div class="bj_fitem">
				<input type="radio" name="sign" value="0" checked>不标记
				<input type="radio" name="sign" value="1">标记
			</div>
			</form>
			<div style="color: red" align="center"><span id="cn"></span></div>
			<div id="barcode"></div>
	</div>
	
	<div id="order_update_dd" data-options="closed:true" style="padding:5px; width: 420px; height: 420px; ">
		<div class="usli_ftitle">修改内容</div>
		<form id='order_update_form' method='post'>
			<div class="usli_fitem">
				<label>公司编号：</label>
				<input id="companyNum" type="text" name="companyNum" readonly="readonly">
			</div>
			<div class="usli_fitem">
				<label>数量：</label>
				<input id="num" type="text" name="num">
			</div>
			<div class="usli_fitem">
				<label>客户编号：</label>
				<input id="customNum" type="text" name="customNum">
			</div>
			<div class="usli_fitem">
				<label>客户型号：</label>
				<input id="customType" type="text" name="customType">
			</div>
			<div class="usli_fitem">
				<label>唛头：</label>
				<input id="marks" type="text" name="marks">
			</div>
			<div class="usli_fitem">
				<label>机芯：</label>
				<input id="movement" type="text" name="movement">
			</div>
			</form>
			&nbsp;
			<div  style="color: red" align="center"><span id="cn_up"></span></div>
			<div id="barcode_up"></div>
	</div>
	
	<div id="order_mouth_del_dd" data-options="closed:true" style="padding:5px; width: 380px; height: 200px; ">
		<div class="usli_ftitle">删除订单</div>
		<form id='order_mouth_del_form' method='post'>
			<div class="usli_fitem">
				<label>起始时间：</label>
				<input id="order_mouth_del_begin_time" name="begin_time" style="width:150px;" type="text" class="easyui-datebox" required="true" missingMessage="日期必须填写"  editable="false">
			</div>
			<div class="usli_fitem">
				<label>结束时间：</label>
				<input id="order_mouth_del_end_time" name="end_time" style="width:150px;" type="text" class="easyui-datebox" required="true" missingMessage="日期必须填写"  editable="false">
			</div>
			<div class="usli_fitem">
				<label>许可密码：</label>
				<input id="pwd" type="password" name="pwd"  class="easyui-validatebox" missingMessage="密码必须填写" required="true">
			</div>
			</form>
	</div>
	
